#include <stdio.h>


int main()
{
	int num[20]={0};
	int i;
	for(i=0;i<20;i++)
	{
		scanf("%d",&num[i]);
		if(num[i]<=0)
		break;
	}	
	int count1=0;
	int count2=0;
	int count3=0;
	for(i=0;i<20;i++)
	{
		if(num[i]>=85)
		count1++;
		else if(num[i]>=60 && num[i]<=84)
		count2++;
		else if(num[i]>0 && num[i]<60)
		count3++;
		else
		break;
	}
	printf(">=85:%d\n",count1);
	printf("60-84:%d\n",count2);
	printf("<60:%d\n",count3);
	return 0;
}